package com.bigscreen.service.impl;

import com.bigscreen.dao.BigScreenDao;
import com.bigscreen.service.BigScreenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Random;

@Service
public class BigScreenServiceImpl implements BigScreenService {
    @Autowired
    private BigScreenDao bsDao;
    Random random = new Random();

    @Override
    public String fetchTotalAmt() {
        String tatalAmt = bsDao.queryTotalAmt();
        tatalAmt = random.nextDouble() * 10000000+"";
        return tatalAmt;
    }
}
